#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include <errno.h>

int main(void)
{
	FILE * pf;
	int errnum;

	pf = fopen("uns.txt", "rb");
	if (pf == NULL)
	{
		errnum = errno;

		fprintf(stderr, "错误号: %d\n", errno);

		perror("通过perror输出错误");

		fprintf(stderr, "打开文件错误: %s\n", strerror(errnum));
	}
	else
	{
		fclose(pf);
	}

	//printf("大小: %lu \n", sizeof(int));
	//return 0;

	//exit(EXIT_SUCCESS);
	exit(EXIT_FAILURE);
}


